//
//  MyCell.m
//  CoreData通讯录
//
//  Created by 邝子涵 on 15/11/20.
//  Copyright © 2015年 kuangzihan. All rights reserved.
//

#import "MyCell.h"

@implementation MyCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView{
    self.nameLabel = [[UILabel alloc] init];
//    self.nameLabel.backgroundColor = [UIColor yellowColor];
//    self.nameLabel.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview:self.nameLabel];
    
//    self.sexLabel = [[UILabel alloc] init];
//    self.sexLabel.backgroundColor = [UIColor yellowColor];
//    [self.contentView addSubview:self.sexLabel];
//    
//    self.numberLabel = [[UILabel alloc] init];
//    self.numberLabel.backgroundColor = [UIColor blueColor];
//    [self.contentView addSubview:self.numberLabel];
//    
    self.phoneLabel = [[UILabel alloc] init];
//    self.phoneLabel.backgroundColor = [UIColor greenColor];
//    self.phoneLabel.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview:self.phoneLabel];
    
//    self.QQLabel = [[UILabel alloc] init];
//    self.QQLabel.backgroundColor = [UIColor orangeColor];
//    [self.contentView addSubview:self.phoneLabel];
//    
//    self.NativeLabel = [[UILabel alloc] init];
//    self.NativeLabel.backgroundColor = [UIColor cyanColor];
//    [self.contentView addSubview:self.NativeLabel];
}

- (void)layoutSubviews{
    [super layoutSubviews];
    
    self.nameLabel.frame = CGRectMake(22.5, 20, 330, 50);
    self.phoneLabel.frame = CGRectMake(22.5, 80, 330, 50);
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
